import babel from '@babel/core'
import useGod from '../babelPlugins/useGod'
export default function langJsx() {
  return {
    name: 'langJsx',
    transform(src, id) {
      if (!/App.vue$/.test(id)) return
      const { code: output, map } = babel.transformSync(src, {
        filename: id,
        plugins: [useGod],
      })
      return {
        code: output,
      }
    },
  }
}
